package es.xpt.ysf.commons.jcr;

public class JcrNodeInfo implements Comparable<JcrNodeInfo> {

	private String id;
	private String name;
	private Integer order;
	
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setOrder(Integer order) {
		this.order = order;
	}
	public Integer getOrder() {
		return order;
	}
	@Override
	public int compareTo(JcrNodeInfo o) {
		return order.compareTo(o.order);
	}
	
	@Override
	public String toString() {
		return id;
	}
}
